﻿using System.Windows;

namespace 温湿度和颗粒度监控测试.Common
{
    public class MessageBoxHelper
    {
        public static MessageBoxResult Error(string message, string caption = "错误提示")
        {
            return MessageBox.Show(message, caption, MessageBoxButton.OK, MessageBoxImage.Error);
        }

        public static MessageBoxResult Info(string message, string caption = "提示")
        {
            return MessageBox.Show(message, caption, MessageBoxButton.OK, MessageBoxImage.Information);
        }

        public static MessageBoxResult Confirm(string message, string caption = "提示")
        {
            return MessageBox.Show(message, caption, MessageBoxButton.YesNo, MessageBoxImage.Information);
        }
    }
}
